﻿using EMall.Domain;
using IdentityServer4.EntityFramework.Entities;

namespace EMall.IdentityService.IdentityServers
{
    public interface IIdentityServerRepository : IRepository
    {
        Task AddClientAsync(Client client);
        Task RemoveClientAsync(Client client);
        Task RemoveClientScopeAsync(ClientScope clientScope);
        Task AddIdentityResourceAsync(IdentityResource identityResource);
        Task RemoveIdentityResourceAsync(IdentityResource identityResource);
        Task AddApiResourceAsync(ApiResource apiResource);
        Task RemoveApiResourceAsync(ApiResource apiResource);
        Task AddApiScopeAsync(ApiScope apiScope);
        Task RemoveApiScopeAsync(ApiScope apiScope);
    }
}
